package com.qinggeng.project.api.dto;

public class AppVersionDto {

    private Long id;

    //类型（ios，android）
    private String type;

    //版本号
    private String version;

    //更新地址
    private String url;

    //更新标题
    private String title;

    //更新内容
    private String content;

    //是否强更
    private int isForce;

    //是否更新
    private boolean isUpdate=false;

    //是否强制更新
    private boolean isForceUpdate;


    public AppVersionDto() {
    }

    public AppVersionDto(boolean isUpdate) {
        this.isUpdate = isUpdate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getIsForce() {
        return isForce;
    }

    public void setIsForce(int isForce) {
        this.isForce = isForce;
    }

    public boolean isUpdate() {
        return isUpdate;
    }

    public void setUpdate(boolean update) {
        isUpdate = update;
    }

    public boolean isForceUpdate() {
        return isForce==1?true:false;
    }

    public void setForceUpdate(boolean forceUpdate) {
        isForceUpdate = forceUpdate;
    }
}
